﻿<Window x:Class="MyCpuMonitor.App.WindowMain"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:l="clr-namespace:MyCpuMonitor.Controls;assembly=MyCpuMonitor.Controls"
    Title="My Cpu Monitor" Height="535" Width="557" MinWidth="350">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" BorderThickness="0" CornerRadius="0">
            <Border.Background>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" Opacity="0.8">
                    <GradientStop Color="#444444" Offset="0.0" />
                    <GradientStop Color="#888888" Offset="0.4" />
                    <GradientStop Color="#333333" Offset="0.5" />
                    <GradientStop Color="#000000" Offset="1" />
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <StackPanel Margin="5" Orientation="Horizontal">
                    <StackPanel.Resources>
                        <Style TargetType="TextBlock">
                            <Setter Property="VerticalAlignment" Value="Center" />
                            <Setter Property="FontSize" Value="20" />
                        </Style>
                    </StackPanel.Resources>
                    <TextBlock Width="Auto" Height="27" Text="My Cpu Monitor" Foreground="White" />
                </StackPanel>
            </Grid>
        </Border>

        <l:ControlCpuInfo Grid.Row="1" Background="Transparent" />

        <l:ControlMultiProcessorInfo Grid.Row="2" Background="Transparent" />
    </Grid>
</Window>
